package com.ruoyi.college.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.college.mapper.LabBuidingsMapper;
import com.ruoyi.college.domain.LabBuidings;
import com.ruoyi.college.service.ILabBuidingsService;

/**
 * 楼栋Service业务层处理
 * 
 * @author winner pan
 * @date 2022-02-13
 */
@Service
public class LabBuidingsServiceImpl implements ILabBuidingsService 
{
    @Autowired
    private LabBuidingsMapper labBuidingsMapper;

    /**
     * 查询楼栋
     * 
     * @param buildingId 楼栋ID
     * @return 楼栋
     */
    @Override
    public LabBuidings selectLabBuidingsById(Long buildingId)
    {
        return labBuidingsMapper.selectLabBuidingsById(buildingId);
    }

    /**
     * 查询楼栋列表
     * 
     * @param labBuidings 楼栋
     * @return 楼栋
     */
    @Override
    public List<LabBuidings> selectLabBuidingsList(LabBuidings labBuidings)
    {
        return labBuidingsMapper.selectLabBuidingsList(labBuidings);
    }

    /**
     * 新增楼栋
     * 
     * @param labBuidings 楼栋
     * @return 结果
     */
    @Override
    public int insertLabBuidings(LabBuidings labBuidings)
    {
        return labBuidingsMapper.insertLabBuidings(labBuidings);
    }

    /**
     * 修改楼栋
     * 
     * @param labBuidings 楼栋
     * @return 结果
     */
    @Override
    public int updateLabBuidings(LabBuidings labBuidings)
    {
        return labBuidingsMapper.updateLabBuidings(labBuidings);
    }

    /**
     * 批量删除楼栋
     * 
     * @param buildingIds 需要删除的楼栋ID
     * @return 结果
     */
    @Override
    public int deleteLabBuidingsByIds(Long[] buildingIds)
    {
        return labBuidingsMapper.deleteLabBuidingsByIds(buildingIds);
    }

    /**
     * 删除楼栋信息
     * 
     * @param buildingId 楼栋ID
     * @return 结果
     */
    @Override
    public int deleteLabBuidingsById(Long buildingId)
    {
        return labBuidingsMapper.deleteLabBuidingsById(buildingId);
    }
}
